},
},
- {
- -- Add indentation guides even on blank lines
- 'lukas-reineke/indent-blankline.nvim',
- -- Enable `lukas-reineke/indent-blankline.nvim`
- -- See `:help indent_blankline.txt`
- opts = {
- char = '┊',
- show_trailing_blankline_indent = false,
- },
- },
+ -- { dir = '~/github/mynvimplugins/btoggle.nvim/' },
+ { 'tobser/btoggle.nvim' },
-- "gc" to comment visual regions/lines
{ 'numToStr/Comment.nvim', opts = {} },
-- See `:help vim.o`
-- Set highlight on search
-vim.o.hlsearch = false
+vim.o.hlsearch = true
-- Make line numbers default
vim.wo.relativenumber = true
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'html',
- 'c_sharp', 'perl', 'python' },
+ 'c_sharp', 'perl', 'bash', 'python' ,'markdown' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
highlight = { enable = true },
- indent = { enable = true, disable = { 'python' } },
+ indent = { enable = false, disable = { 'python' } },
incremental_selection = {
enable = true,
keymaps = {
nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
-
-
-- See `:help K` for why this keymap
nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
end,
}
+-- require('lspconfig').perlls.setup {
+-- settings = {
+-- perl = {
+-- perlInc = {
+-- '/home/pi/git/misterhouse/lib',
+-- '/home/pi/git/misterhouse/bin',
+-- },
+-- },
+-- },
+-- capabilities = capabilities,
+-- on_attach = on_attach,
+-- }
+--
+require('lspconfig').perlpls.setup {
+ on_attach = on_attach,
+ settings = {
+ perl = {
+ perlcritic = {
+ enabled = false
+ },
+ syntax = {
+ enabled = true
+ },
+ inc = {
+ '/home/pi/git/misterhouse/lib',
+ '/home/pi/git/misterhouse/bin',
+ },
+ },
+ },
+ capabilities = capabilities,
+}
+
-- nvim-cmp setup
local cmp = require 'cmp'
local luasnip = require 'luasnip'
"javascriptreact",
"json",
"less",
+ "perl",
"markdown",
"scss",
"typescript",
vim.opt.cursorline = true
vim.opt.hlsearch = true
+local bt = require("btoggle");
+bt.setup({
+ ["true"] = "false",
+ ["True"] = "False",
+ ["False"] = "True",
+ ["false"] = "true",
+ ["foo"] = "bar",
+ ["bar"] = "bor",
+ ["bor"] = "foo"
+})
+vim.keymap.set('n', '<leader>b', bt.toggle)
+
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et