diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2022-11-26 00:19:01 +0100 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2022-11-26 00:19:01 +0100 |
| commit | 7b5eab661775f031510831176a6994d541ded669 (patch) | |
| tree | 9bdb59e1f889d212fcb734c7be1bc71dace602bc | |
| parent | f21c9d7ff9750d45b55c1639f8631ff38f80cb5d (diff) | |
should do events next
| -rw-r--r-- | neovim/fnl/conf/events.fnl | 13 | ||||
| -rw-r--r-- | neovim/fnl/conf/init.fnl | 4 | ||||
| -rw-r--r-- | neovim/fnl/conf/pkgs.fnl | 3 | ||||
| -rw-r--r-- | neovim/fnl/conf/pkgs/neotest.fnl | 4 |
4 files changed, 20 insertions, 4 deletions
diff --git a/neovim/fnl/conf/events.fnl b/neovim/fnl/conf/events.fnl new file mode 100644 index 0000000..082a274 --- /dev/null +++ b/neovim/fnl/conf/events.fnl @@ -0,0 +1,13 @@ +;; vim.cmd([[augroup vimrc_plugin_buffers]]) +;; vim.cmd([[au!]]) +;; vim.cmd( +;; [[autocmd BufWritePre *.md,*.hcl,*.tf,*.py,*.cpp,*.qml,*.js,*.txt,*.json,*.html,*.lua,*.yaml,*.yml,*.bash,*.sh,*.go :lua require"vimrc.buffers".clean_trailing_spaces()]]) +;; +;; vim.cmd( +;; [[autocmd BufReadPost * lua require"vimrc.buffers".setup_white_space_highlight(vim.fn.bufnr())]]) +;; +;; vim.cmd( +;; [[autocmd BufReadPre *.tf,*.hcl packadd vim-terraform]]) +;; +;; vim.cmd([[augroup END]]) + diff --git a/neovim/fnl/conf/init.fnl b/neovim/fnl/conf/init.fnl index c4e6d88..388139f 100644 --- a/neovim/fnl/conf/init.fnl +++ b/neovim/fnl/conf/init.fnl @@ -3,10 +3,6 @@ (vim.cmd "filetype indent on") (vim.cmd "highlight WinSeparator guibg=None") -(let [nt (require :neotest) - python (require :neotest-python)] - (nt.setup {:adapters [(python {:dap {:justMyCode false}})]})) - (require :conf.lsp) (require :conf.pkgs) (require :conf.settings) diff --git a/neovim/fnl/conf/pkgs.fnl b/neovim/fnl/conf/pkgs.fnl index 1cbe4a9..e97c038 100644 --- a/neovim/fnl/conf/pkgs.fnl +++ b/neovim/fnl/conf/pkgs.fnl @@ -1,3 +1,6 @@ (require :conf.pkgs.cmp) + +;; seems broken: (require :conf.pkgs.neotest) + (require :conf.pkgs.null-ls) (require :conf.pkgs.treesitter) diff --git a/neovim/fnl/conf/pkgs/neotest.fnl b/neovim/fnl/conf/pkgs/neotest.fnl new file mode 100644 index 0000000..251cdcb --- /dev/null +++ b/neovim/fnl/conf/pkgs/neotest.fnl @@ -0,0 +1,4 @@ +(let [nt (require :neotest) + python (require :neotest-python)] + (nt.setup {:adapters [(python {:dap {:justMyCode false}})]})) + |
