Compare commits

...

3 Commits

Author SHA1 Message Date
766fd78e81 optional lsp for c/c++ and swift 2021-12-07 15:21:49 +00:00
60b783b822 use surround.nvim 2021-12-07 15:21:37 +00:00
8d3952ec91 update neovide settings 2021-12-07 15:21:25 +00:00
4 changed files with 17 additions and 12 deletions

View File

@ -64,9 +64,9 @@
(set nvim.o.termguicolors true)
; neovide
(set nvim.g.neovide_fullscreen true)
; (set nvim.g.neovide_fullscreen true)
(set nvim.g.neovide_cursor_vfx_mode "pixiedust")
(set nvim.o.guifont "FiraCode Nerd Font Mono:h20")
(set nvim.o.guifont "FiraCode Nerd Font Mono:h16")
(require "plugins")
(require "settings")

View File

@ -14,14 +14,14 @@
(lspconfig.rust_analyzer.setup {})
(lspconfig.gopls.setup {})
(lspconfig.denols.setup {})
(lspconfig.sourcekit.setup {})
(lspconfig.ccls.setup
{:init_options {:clang {:extraArgs ["-I/usr/local/include"
"-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1"
"-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include"
"-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
"-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
"-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"]}}})
; (lspconfig.sourcekit.setup {})
; (lspconfig.ccls.setup
; {:init_options {:clang {:extraArgs ["-I/usr/local/include"
; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1"
; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include"
; "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
; "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"]}}})
(treesitter.setup {:ensure_installed ["c" "cpp" "python" "go" "rust" "javascript" "lua"]
:highlight {:enable true}

View File

@ -21,8 +21,7 @@
(use :cocopon/vaffle.vim)
(use :jeetsukumaran/vim-buffergator)
(use :tpope/vim-fugitive)
(use :kana/vim-operator-user)
(use :rhysd/vim-operator-surround)
(use :blackCauldron7/surround.nvim)
(use :chaoren/vim-wordmotion)
(use :b3nj5m1n/kommentary)
(use :nelstrom/vim-visual-star-search)

View File

@ -24,6 +24,12 @@
(nvim.set_keymap "" :sd "<Plug>(operator-surround-delete)" {:silent true})
(nvim.set_keymap "" :sr "<Plug>(operator-surround-replace)" {:silent true})
;; surround.nvim
(global surround (require :surround))
(surround.setup
{:mappings_style "sandwich"
})
;; kommentary
(global kommentary (require :kommentary.config))
(kommentary.configure_language :default {:prefer_single_line_comments true})