Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Jul 28, 2024
1 parent 5bf3e72 commit 63b099d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
8 changes: 5 additions & 3 deletions fnl/prelude.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@
(set specificFileEnterAutoCmd
(A.nvim_create_autocmd :FileType
{:callback (fn []
(if (let [F vim.bo.filetype]
(if (let [F vim.bo.filetype
B vim.bo.buftype
]
(not (or (= F "")
(= F :prompt)
(= F :nofile))))
(= B :prompt)
(= B :nofile))))
(do
(A.nvim_exec_autocmds :User
{:pattern :SpecificFileEnter})
Expand Down
17 changes: 9 additions & 8 deletions fnl/statuscol.fnl
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
(let [M (require :statuscol)
B (require :statuscol.builtin)
(let [M (setmetatable {:builtin (require :statuscol.builtin)}
{:__index (require :statuscol)})
segments [{:text ["%s"] :maxwidth 2 :click "v:lua.ScSa"}
{:text [B.lnumfunc] :click "v:lua.ScLa"}
{:text [" " B.foldfunc " "] :click "v:lua.ScFa"}]
{:text [M.builtin.lnumfunc] :click "v:lua.ScLa"}
{:text [" " M.builtin.foldfunc " "] :click "v:lua.ScFa"}]
statuses [:NeotestPassed :NeotestFailed :NeotestRunning :NeotestSkipped]]
;; 行数表示
(set vim.o.number true)
;; signcolumnのがたつきを無くす
(set vim.o.signcolumn :yes)
(M.setup {:setopt true :relculright false : segments})
;; WIP: signの背景色を手動設定
(each [_ s (ipairs statuses)]
(vim.api.nvim_set_hl 0 s {:bg "#2a2a37"})))

;; 行数表示
(set vim.o.number true)
;; signcolumnのがたつきを無くす
(set vim.o.signcolumn :yes)
3 changes: 2 additions & 1 deletion lua/autogen/prelude.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions lua/autogen/statuscol.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63b099d

Please sign in to comment.