More plugins

This commit is contained in:
linarphy 2024-04-15 07:42:08 +02:00
parent bb10f99a16
commit 93704c7c85
No known key found for this signature in database
GPG key ID: B914FF3FE69AA363
13 changed files with 146 additions and 11 deletions

View file

@ -5,3 +5,7 @@ require('plugins')
require('mapping') require('mapping')
require('display') require('display')
require('provider')
require('utility')

View file

@ -1,5 +1,12 @@
{ {
"LuaSnip": { "branch": "master", "commit": "8ae1dedd988eb56441b7858bd1e8554dfadaa46d" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-emoji": { "branch": "main", "commit": "e8398e2adf512a03bb4e1728ca017ffeac670a9f" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"dashboard-nvim": { "branch": "master", "commit": "681300934baf36f6184ca41f0b26aed22056d4ee" }, "dashboard-nvim": { "branch": "master", "commit": "681300934baf36f6184ca41f0b26aed22056d4ee" },
"friendly-snippets": { "branch": "main", "commit": "ea068f1becd91bcd4591fceb6420d4335e2e14d3" },
"fzf-lua": { "branch": "main", "commit": "344b309421e5222a6199e4b46d01041089b6a2ae" }, "fzf-lua": { "branch": "main", "commit": "344b309421e5222a6199e4b46d01041089b6a2ae" },
"lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" }, "lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" },
"mini.nvim": { "branch": "main", "commit": "c4598eaaa7bc29c1d17dd1238c3436c1fb4233aa" }, "mini.nvim": { "branch": "main", "commit": "c4598eaaa7bc29c1d17dd1238c3436c1fb4233aa" },
@ -7,6 +14,7 @@
"neo-tree.nvim": { "branch": "v3.x", "commit": "c61074acb19102dfc6f21738dcae4d9a494a8959" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "c61074acb19102dfc6f21738dcae4d9a494a8959" },
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" }, "noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
"nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" }, "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" },
"nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },
"nvim-lspconfig": { "branch": "master", "commit": "b3014f2209503944f2714cf27c95591433a0c7d8" }, "nvim-lspconfig": { "branch": "master", "commit": "b3014f2209503944f2714cf27c95591433a0c7d8" },
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" }, "nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
"nvim-treesitter": { "branch": "master", "commit": "f08a9d97f7a2ac02115a5c1c8e3973b2634d996b" }, "nvim-treesitter": { "branch": "master", "commit": "f08a9d97f7a2ac02115a5c1c8e3973b2634d996b" },

View file

@ -2,8 +2,25 @@ vim.opt.relativenumber = true
vim.opt.number = true vim.opt.number = true
vim.opt.wrap = false vim.opt.wrap = false
vim.opt.emoji = false vim.opt.emoji = false
vim.opt.textwidth = 72
vim.opt.cursorline = true vim.opt.cursorline = true
vim.opt.cursorcolumn = true vim.opt.cursorcolumn = true
vim.opt.formatoptions:append({ t , 1 , o , n })
vim.api.nvim_create_autocmd(
{'Filetype'},
{
pattern = {
'vim' ,
'lua' ,
'markdown' ,
'python' ,
'javascript',
'rust' ,
} ,
command = ':setlocal formatoptions+=t1on',
}
)
require('monokai').setup {} require('monokai').setup {}

View file

@ -0,0 +1,3 @@
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.smartindent = true

View file

@ -1,3 +1,5 @@
require('display.editor') require('display.editor')
require('display.gui') require('display.gui')
require('display.indent')

View file

@ -9,3 +9,5 @@ require('mapping.persistence')
require('mapping.fzf-lua') require('mapping.fzf-lua')
require('mapping.neo-tree') require('mapping.neo-tree')
require('mapping.missing_key')

View file

@ -0,0 +1,24 @@
vim.keymap.set(
{
'n',
'v',
'i',
} ,
'<Leader>c',
'<' ,
{
desc = '< for pc102 layout 😬'
}
)
vim.keymap.set(
{
'n',
'v',
'i',
} ,
'<Leader>C',
'>' ,
{
desc = '> for pc102 layout 😬'
}
)

View file

@ -0,0 +1,17 @@
return {
'L3MON4D3/LuaSnip' ,
version = 'v2.*' ,
build = 'make install_jsregexp',
dependencies = {
{
'rafamadriz/friendly-snippets',
config = function()
require('luasnip.loaders.from_vscode').lazy_load()
end,
},
{
'saadparwaiz1/cmp_luasnip',
},
},
}

View file

@ -1,15 +1,25 @@
return { return {
"folke/noice.nvim", 'folke/noice.nvim',
event = "VeryLazy", event = 'VeryLazy',
opts = { opts = {
-- add any options here lsp = {
override = {
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
['vim.lsp.util.stylize_markdown'] = true,
['cmp.entry.get_documentation'] = true,
},
},
presets = {
bottom_search = true,
command_palette = true,
}
}, },
dependencies = { dependencies = {
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries -- if you lazy-load any plugin below, make sure to add proper `module='...'` entries
"MunifTanjim/nui.nvim", 'MunifTanjim/nui.nvim',
-- OPTIONAL: -- OPTIONAL:
-- `nvim-notify` is only needed, if you want to use the notification view. -- `nvim-notify` is only needed, if you want to use the notification view.
-- If not available, we use `mini` as the fallback -- If not available, we use `mini` as the fallback
"rcarriga/nvim-notify", 'rcarriga/nvim-notify',
} }
} }

View file

@ -0,0 +1,34 @@
return {
'hrsh7th/nvim-cmp' ,
version = false ,
event = 'InsertEnter',
dependencies = {
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer' ,
'hrsh7th/cmp-path' ,
'hrsh7th/cmp-emoji' ,
} ,
opts = function()
local cmp = require('cmp')
local defaults = require('cmp.config.default')()
return {
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'path' },
{ name = 'emoji' },
{ name = 'luasnip' },
}, {
{ name = 'buffer' },
}),
}
end ,
}

View file

@ -6,13 +6,19 @@ return {
}, },
config = function() config = function()
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
local capabilities = require('cmp_nvim_lsp').default_capabilities()
lspconfig.pyright.setup {} lspconfig.pyright.setup {
lspconfig.tsserver.setup {} capabilities = capabilities,
}
lspconfig.tsserver.setup {
capabilities = capabilities,
}
lspconfig.rust_analyzer.setup { lspconfig.rust_analyzer.setup {
settings = { capabilities = capabilities,
settings = {
['rust-analyzer'] = {}, ['rust-analyzer'] = {},
}, } ,
} }
end end
} }

View file

@ -0,0 +1,4 @@
vim.g.python3_host_prog = '~/.local/share/python/neovim/bin/python3'
vim.g.loaded_node_provider = 0
vim.g.loaded_perl_provider = 0
vim.g.loaded_ruby_provider = 0

View file

@ -0,0 +1,4 @@
vim.opt.confirm = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.spell = false