mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
update nvim config
This commit is contained in:
parent
758fc2fe3f
commit
7eafb32215
@ -30,7 +30,7 @@ set showmatch
|
||||
set list
|
||||
set listchars=tab:\ ,trail:
|
||||
" set path from current directory and all directories under
|
||||
set path=$PWD/**
|
||||
" set path=$PWD/**
|
||||
set encoding=UTF-8
|
||||
set guifont=FiraCode\ Nerd\ Font\ 18
|
||||
set expandtab
|
||||
@ -78,6 +78,7 @@ let g:maplocalleader = ','
|
||||
if has('nvim')
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'nvim-lua/popup.nvim'
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
" Plug 'nvim-telescope/telescope.nvim'
|
||||
|
||||
" Plug 'TimUntersberger/neogit'
|
||||
@ -91,7 +92,6 @@ if has('nvim')
|
||||
Plug 'lewis6991/gitsigns.nvim'
|
||||
Plug 'lewis6991/gitsigns.nvim'
|
||||
Plug 'nvim-lualine/lualine.nvim'
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'ojroques/nvim-lspfuzzy'
|
||||
|
||||
Plug 'L3MON4D3/LuaSnip'
|
||||
@ -139,6 +139,7 @@ if has('nvim')
|
||||
let g:fzf_command = 'fzf --height 90% --width=85% --layout=reverse --preview "bat --color=always {}"'
|
||||
source ~/.config/nvim/keybindings.vim
|
||||
|
||||
" nvim plugins
|
||||
source ~/.config/nvim/plugin-confs/bufferline.lua
|
||||
source ~/.config/nvim/plugin-confs/dashboard-art.vim
|
||||
source ~/.config/nvim/plugin-confs/dashboard-nvim.lua
|
||||
@ -163,6 +164,7 @@ if has('nvim')
|
||||
source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
||||
source ~/.config/nvim/plugin-confs/trouble.lua
|
||||
|
||||
" nvim and vim plugins
|
||||
source ~/.vim/plugin-confs/floaterm.vim
|
||||
source ~/.vim/plugin-confs/fzf.vim
|
||||
source ~/.vim/plugin-confs/lightline.vim
|
||||
|
@ -93,7 +93,7 @@ nmap <leader>ob :FloatermNew --title=bpytop --opener=vsplit bpytop<CR>
|
||||
nmap <leader>od :FloatermNew --title=lazydocker --opener=vsplit lazydocker<CR>
|
||||
nmap <leader>on :FloatermNew --title=ncmpcpp --opener=vsplit ncmpcpp<CR>
|
||||
nmap <leader>or :FloatermNew --title=ranger --opener=vsplit ranger --cmd="cd $PWD"<CR>
|
||||
nmap <leader>ot :FloatermNew --title=floaterm --name=vsplit-term --wintype=vsplit --position=botright --width=0.5<CR>
|
||||
nmap <leader>ot :FloatermNew --title=floaterm --name=vsplit-term --opener=edit --wintype=vsplit --position=botright --width=0.5<CR>
|
||||
|
||||
nmap <leader>r :NvimTreeRefresh<CR>
|
||||
|
||||
|
@ -176,7 +176,7 @@ end)
|
||||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches
|
||||
local servers = { 'pyright', 'bashls', 'sqls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'jsonls', 'dotls', 'rust_analyzer', 'clangd' }
|
||||
local servers = { 'pyright', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'dotls', 'rust_analyzer', 'clangd' }
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
|
@ -7,6 +7,7 @@ require('lualine').setup {
|
||||
-- theme = 'onedark',
|
||||
component_separators = { left = '', right = '' },
|
||||
section_separators = { left = '', right = ''},
|
||||
-- section_separators = { left = '', right = '' },
|
||||
disabled_filetypes = {},
|
||||
always_divide_middle = true,
|
||||
},
|
||||
|
@ -20,7 +20,7 @@ require("null-ls").setup({
|
||||
require("null-ls").builtins.diagnostics.cppcheck,
|
||||
require("null-ls").builtins.diagnostics.gitlint,
|
||||
require("null-ls").builtins.diagnostics.jsonlint,
|
||||
require("null-ls").builtins.diagnostics.luacheck,
|
||||
-- require("null-ls").builtins.diagnostics.luacheck,
|
||||
require("null-ls").builtins.diagnostics.markdownlint,
|
||||
require("null-ls").builtins.diagnostics.pylint,
|
||||
require("null-ls").builtins.diagnostics.pydocstyle.with({
|
||||
@ -28,13 +28,14 @@ require("null-ls").setup({
|
||||
}),
|
||||
require("null-ls").builtins.diagnostics.vint,
|
||||
require("null-ls").builtins.formatting.json_tool,
|
||||
require("null-ls").builtins.formatting.lua_format,
|
||||
-- require("null-ls").builtins.formatting.lua_format,
|
||||
require("null-ls").builtins.formatting.markdownlint,
|
||||
require("null-ls").builtins.formatting.prettier,
|
||||
require("null-ls").builtins.formatting.rustfmt,
|
||||
-- handled by lsp server
|
||||
-- require("null-ls").builtins.formatting.rustfmt,
|
||||
require("null-ls").builtins.formatting.shfmt.with({
|
||||
filetypes = {"sh", "bash"},
|
||||
extra_args = { "-i", "4", "-ci", "-sr" }
|
||||
extra_args = { "-i", "0", "-ci", "-sr" }
|
||||
}),
|
||||
require("null-ls").builtins.diagnostics.shellcheck.with({
|
||||
extra_args = { "-s", "bash", "-o", "check-extra-masked-returns, check-set-e-suppressed, check-unassigned-uppercase, deprecate-which, quote-safe-variables" }
|
||||
|
@ -20,8 +20,8 @@ onedarkpro.setup({
|
||||
styles = {
|
||||
comments = "italic",
|
||||
functions = "bold",
|
||||
keywords = "bold,italic",
|
||||
strings = "italic",
|
||||
keywords = "italic,bold",
|
||||
strings = "NONE",
|
||||
variables = "bold"
|
||||
},
|
||||
options = {
|
||||
|
Loading…
Reference in New Issue
Block a user