mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 19:56:24 +00:00
Several changes to nvim setup
This commit is contained in:
@@ -6,7 +6,7 @@ O = {
|
||||
clipboard = unnamedplus,
|
||||
incsearch = true,
|
||||
termguicolors = true,
|
||||
colorscheme = 'onedark',
|
||||
colorscheme = 'dracula',
|
||||
hidden_files = true,
|
||||
wrap_lines = false,
|
||||
number = true,
|
||||
|
@@ -37,7 +37,7 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||
virtual_text = {
|
||||
prefix = "",
|
||||
spacing = 0,
|
||||
spacing = 1,
|
||||
},
|
||||
signs = true,
|
||||
underline = true,
|
||||
@@ -73,12 +73,7 @@ vim.lsp.protocol.CompletionItemKind = {
|
||||
" (TypeParameter)"
|
||||
}
|
||||
|
||||
--[[ " autoformat
|
||||
autocmd BufWritePre *.js lua vim.lsp.buf.formatting_sync(nil, 100)
|
||||
autocmd BufWritePre *.jsx lua vim.lsp.buf.formatting_sync(nil, 100)
|
||||
autocmd BufWritePre *.lua lua vim.lsp.buf.formatting_sync(nil, 100) ]]
|
||||
-- Java
|
||||
-- autocmd FileType java nnoremap ca <Cmd>lua require('jdtls').code_action()<CR>
|
||||
vim.cmd("autocmd BufWritePre *.go :silent! lua require('go.format').gofmt()")
|
||||
|
||||
local function documentHighlight(client, bufnr)
|
||||
-- Set autocommands conditional on server_capabilities
|
||||
|
@@ -92,7 +92,7 @@ return require("packer").startup(
|
||||
use {'hrsh7th/cmp-cmdline'}
|
||||
use {'hrsh7th/nvim-cmp'}
|
||||
|
||||
-- use {'glepnir/lspsaga.nvim'}
|
||||
-- use {'glepnir/lspsaga.nvim'} -- Has a bug
|
||||
use {'tami5/lspsaga.nvim'}
|
||||
use {'kabouzeid/nvim-lspinstall'}
|
||||
use {'nvim-lua/lsp-status.nvim'}
|
||||
@@ -113,6 +113,8 @@ return require("packer").startup(
|
||||
-- => Language Support
|
||||
use {'neoclide/jsonc.vim'}
|
||||
|
||||
use {'ray-x/go.nvim'}
|
||||
|
||||
-- use {'vim-python/python-syntax', ft={'python'}, opt=true}
|
||||
-- let g:python_highlight_all = 1
|
||||
|
||||
@@ -128,6 +130,7 @@ return require("packer").startup(
|
||||
use {'shaunsingh/moonlight.nvim', as='moonlight'}
|
||||
use {'arcticicestudio/nord-vim'}
|
||||
use {'joshdick/onedark.vim'}
|
||||
use {'sainnhe/everforest'}
|
||||
|
||||
require_plugin('julia-vim')
|
||||
end
|
||||
|
@@ -1,7 +1,7 @@
|
||||
require'lualine'.setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'nord',
|
||||
theme = 'dracula',
|
||||
--component_separators = {'', ''},
|
||||
--section_separators = {'', ''},
|
||||
disabled_filetypes = {}
|
||||
|
Reference in New Issue
Block a user